//
//  GZDetailCell.m
//  lv678
//
//  Created by apple on 15/7/9.
//  Copyright (c) 2015年 lampshade. All rights reserved.
//  自定义旅游票cell


#import "GZDetailCell.h"
#import "UIImageView+WebCache.h"

@implementation GZDetailCell
- (UIImageView *)photoImageView{
    if (!_photoImageView) {
        _photoImageView                     = [[UIImageView alloc]init];
        _photoImageView.frame               = CGRectMake(5, 0, 90, 93);
        _photoImageView.contentMode         = UIViewContentModeScaleAspectFit;
        _photoImageView.clipsToBounds       = YES;
        _photoImageView.layer.masksToBounds = YES;
        _photoImageView.layer.contentsScale = 2.0f;
        [self.contentView addSubview:_photoImageView];
    }
    return _photoImageView;
}
- (UILabel *)title{
    CGFloat w = _photoImageView.frame.size.width+5;
    if (!_title) {
        _title                     = [[UILabel alloc]init];
        _title.frame               = CGRectMake(w+3, 0, self.frame.size.width-w-30, 40);
        _title.contentMode         = UIViewContentModeScaleAspectFit;
        _title.clipsToBounds       = YES;
        _title.font                = [UIFont systemFontOfSize:15.0];
        _title.layer.contentsScale = 2.0f;
        _title.layer.masksToBounds = YES;
        [_title setNumberOfLines:0];
        [self.contentView addSubview:_title];
    }
    return _title;
}
- (UILabel *)detail{
    CGFloat w = _photoImageView.frame.size.width+5;
    if (!_detail) {
        _detail       = [[UILabel alloc]init];
        _detail.frame = CGRectMake(w+3, 35, self.frame.size.width-w-30, 40);
        [self.contentView addSubview:_detail];
        [_detail setNumberOfLines:0];
        _detail.font  = [UIFont systemFontOfSize:13.0];
    }
    return _detail;
}
- (UILabel *)mark{
    CGFloat w = _photoImageView.frame.size.width+5;
    if (!_mark) {
        _mark           = [[UILabel alloc]init];
        _mark.frame     = CGRectMake(w+3, 70, 10, 20);
        _mark.font      = [UIFont systemFontOfSize:13.0];
        _mark.textColor = [UIColor redColor];
        [self.contentView addSubview:_mark];
    }
    return _mark;
}
- (UILabel *)price{
    CGFloat w = _photoImageView.frame.size.width+5;
    if (!_price) {
        _price           = [[UILabel alloc]init];
        _price.frame     = CGRectMake(w+15, 70, 70, 20);
        _price.font      = [UIFont systemFontOfSize:14.0];
        _price.textColor = [UIColor redColor];
        [self.contentView addSubview:_price];
    }
    return _price;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
